#include "Drv_AD7606.h"
#include "USER_AD7606.h"

float 		AD7606_adc1[8];
float 		AD7606_adc2[8];

uint8_t ad7607_8bit1[16];
uint16_t ad7607_8bit2[16];

uint16_t 	AD7606_values1[8];
uint16_t 	AD7606_values2[8];



void ad7606_read(void)
{
//		AD7606BusyIrqCallback_8bit(ad7607_8bit1,16,AD7606_CARD1);
//		AD760616bit_merge(ad7607_8bit1,AD7606_values1);
//		change_7606(AD7606_adc1,AD7606_values1,AD7606_5V);

		if(!HAL_GPIO_ReadPin(BUSY_2_GPIO_Port, BUSY_2_Pin))
		{
			AD7606BusyIrqCallback_8bit((uint8_t *)ad7607_8bit2,8,AD7606_CARD2);
//			AD760616bit_merge(ad7607_8bit2,AD7606_values2);
			change_7606(AD7606_adc2,ad7607_8bit2,AD7606_5V);
		
		}

			
}
